﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="List.aspx.vb" Inherits="Prototype.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<p>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataSourceID="MysteryEventDataSource" 
            BackColor="Black" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="3px" 
            CellPadding="4" CellSpacing="2" ForeColor="Black">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="Detail.aspx?ID={0}" DataTextField="EventName" />
                <asp:BoundField DataField="Location" HeaderText="Location" 
                    SortExpression="Location" />
                <asp:BoundField DataField="AttentionStars" HeaderText="AttentionStars" 
                    SortExpression="AttentionStars" />
                <asp:HyperLinkField DataNavigateUrlFields="WebSite" 
                    DataNavigateUrlFormatString="{0}" DataTextField="EventName" />
                <asp:BoundField DataField="TypeOfEvent" HeaderText="TypeOfEvent" 
                    SortExpression="TypeOfEvent" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Thumbnail">
                    <ControlStyle CssClass="pictures" />
                </asp:ImageField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
            <RowStyle BackColor="White" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
        <asp:SqlDataSource ID="MysteryEventDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MysteryEventConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MysteryEventConnectionString.ProviderName %>" 
            SelectCommand="SELECT [EventName], [Location], [WebSite], [AttentionStars], [TypeOfEvent], [Picture], [ID] FROM [events]">
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>
